import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home.vue'
import HelloWorld from '@/components/HelloWorld.vue'

Vue.use(Router)
// 路由就是根据网址的不同，返回不同的内容给用户
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }, {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    }
  ]
})
